home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.plaf.basic;
-
- import java.awt.event.ActionEvent;
- import javax.swing.AbstractAction;
- import javax.swing.tree.TreePath;
-
- class BasicTreeUI$TreeExtendSelectionAction extends AbstractAction {
- // $FF: synthetic field
- private final BasicTreeUI this$0;
-
- public BasicTreeUI$TreeExtendSelectionAction(BasicTreeUI var1, String var2) {
- this.this$0 = var1;
- }
-
- public void actionPerformed(ActionEvent var1) {
- if (this.this$0.tree != null && this.this$0.getRowCount(this.this$0.tree) > 0) {
- int var2 = BasicTreeUI.access$5(this.this$0);
- if (var2 != -1) {
- TreePath var3 = BasicTreeUI.access$4(this.this$0);
- TreePath var4 = BasicTreeUI.access$9(this.this$0);
- int var5 = this.this$0.getRowForPath(this.this$0.tree, var4);
- if (var5 == -1) {
- var5 = 0;
- }
-
- this.this$0.tree.setSelectionInterval(var5, var2);
- BasicTreeUI.access$3(this.this$0, var3);
- BasicTreeUI.access$2(this.this$0, var4);
- }
- }
-
- }
-
- public boolean isEnabled() {
- return this.this$0.tree != null && this.this$0.tree.isEnabled();
- }
- }
-